package hhf.common.acid.method {
	import flash.events.IEventDispatcher;
	
	[Event(name="result", type="mx.rpc.events.ResultEvent")]
	[Event(name="fault", type="mx.rpc.events.FaultEvent")]
	public class method	{
		public var name:String;
		public var shared:Boolean = true;
		public var resultHandler:Function;
		public var faultHandler:Function;
		public function method() {
		}
		public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void {
			if(type == "result") {
				resultHandler = listener;		
			} else if(type=="fault") {
				faultHandler = listener;		
			}
		}
	}
}